<?php

session_start();

require_once("cfg/def.php");
require_once("models/user.class.php");
require_once("view/vindex.class.php");

$user = new User();
$view = new vIndex($user);
$view->show();



function get_item($items, $key, $def = null)
{
    if(is_null($items)) return $def;
    if(!is_array($items)) return $def;
    if(isset($items[$key]))
        return $items[$key];
    else
        return $def;
}
